/*
	This module is used to read the config file in the root directory:
	"app-config.json". The config file contents most application configurations.
*/

var fs = require('fs');

module.exports = function(index) {
	var config = fs.readFileSync(_ROOT + '/app-config.json');
	if (index) {
		return JSON.parse(config)[index];
	}
	return JSON.parse(config);
};